﻿#pragma once
#ifndef MY_ALGOR_BASE_H
#define MY_ALGOR_BASE_H
#include "imgAlgorBase.h"

#include "track.h"
#include "detectTrack.h"


class SkyDetectAlgor: public AlgorithmBase {
public:
	//AlgorithmBase() {};
	SkyDetectAlgor();
	virtual ~SkyDetectAlgor();

	// 只传入配置/资源文件路径，自行加载对应资源文件。按照绝对路径处理。
	virtual int  Algorithm_Init(const char* CfgPath) override;

	// 传入初始运行参数，例如目标跟踪框
	virtual int  Algorithm_RunCfg(DetectRect* rect ) override;
	// 重置运行相关参数。
	virtual int  Algorithm_Reset() override;


	// 输入图片并获取处理结果
	virtual int  Algorithm_DoProcess(ss_video_frame* frame, std::vector<DetectRect>* resultIN, std::vector<DetectRect>* resultOUT) override;

	// 算法库名称，版本号Ver.x.x
	virtual const char* Algorithm_Name() override;
	virtual const char* Algorithm_Version() override; 

private:
	CentroidTracking  centTrack;
	DETECTTRACK 	*obtracker;  // Declare an instance of DETECTTRACK
};

#endif // !MY_ALGOR_BASE_
